//
//  WAOderListCell.m
//  WalkiOS
//
//  Created by luqiuan on 2019/10/13.
//  Copyright © 2019 Chenmuzhou. All rights reserved.
//

#import "WAOderListCell.h"


@implementation WAOderListCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setModel:(WAGoodListModel *)model{
    _model = model;
//    [self.headImageView sd_setImageWithURL:[NSURL URLWithString:_model.thumbnail_pic_s02]];
    self.nameLB.text = [_model.phone phone];
    self.priceLB.text = [NSString stringWithFormat:@"单价:￥%@  数量：%zd",
                         [NSString baoliuliangwei:[@(model.price) stringValue]],
                         model.number];

}

- (IBAction)buyAction:(id)sender {
    if (self.buyClickBlock) {
        self.buyClickBlock(self.index, _model);
    }
}
@end
